﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="Org_CompanyCategory_Edit.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Organization.Org_CompanyCategory_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtCategoryName.UniqueID%>:{required: true,maxlength: 200},
					<%= numSortCode.UniqueID%>:{required: true,digits: true}					
                 },
                 messages:
                 {
					<%= txtCategoryName.UniqueID%>:{required: "类别名称 请输入合适的值",maxlength: "类别名称 最多只能输入200个字符"},
					<%= numSortCode.UniqueID%>:{required: "排序号 请输入合适的值",digits: "排序号 请输入有效的整数"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">公司类别维护</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:100px;" class="title1">公司类别名称</td>
			<td><asp:TextBox ID="txtCategoryName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">是否有效</td>
			<td><asp:CheckBox ID="chkIsValid" runat="server"></asp:CheckBox></td>
		</tr>
        <tr>
			<td class="title1">排序号</td>
			<td><asp:TextBox ID="numSortCode" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isInt();" Width="96%"></asp:TextBox></td>
        </tr>
		<tr>
			<td class="title1">备注</td>
			<td><asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" cssClass="input2" MaxLength="500" Width="96%"></asp:TextBox></td>
		</tr>
        </table>
        <asp:HiddenField runat="server" ID="hidIsInner" />
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


